
import request from '@/utils/request'

export function getListPage(query) {
  return request({
    url: '/winglinks/ruleEngine/rule/list',
    method: 'get',
    params: query
  })
}

export function getById(id) {
  return request({
    url: '/winglinks/ruleEngine/rule/' + id,
    method: 'get'
  })
}

export function addRule(query) {
  return request({
    url: '/winglinks/ruleEngine/rule',
    method: 'post',
    data: query
  })
}

export function updateRule(query) {
  return request({
    url: '/winglinks/ruleEngine/rule',
    method: 'put',
    data: query
  })
}

export function deleteById(id) {
  return request({
    url: '/winglinks/ruleEngine/rule/' + id,
    method: 'delete'
  })
}

